$(function(){
    $.ajax('http://192.168.2.100:3001/categories',{
        success:function(res){
            // console.log(res);
            let bata=res
            const bataStr = template('navid',{bata,baseUrl})
            $('.search').html(bataStr)
        },
        error:function(err){
            console.log('错误');
        }
    })
})